
#include "WallListener.h"

WallListener *WallListener::instance = 0;

WallListener::WallListener(void)
{
}


WallListener::~WallListener(void)
{
}

void WallListener::add(MYWall * mw){
	this->myList.push_front(mw);
}

void WallListener::traiterEvent(){
	 list<MYWall*>::iterator iter;
	 for (iter = myList.begin() ; iter != myList.end(); iter++){
		(*iter)->refresh();
	 }

}

WallListener *WallListener::getInstance(){
	if (instance == 0)
		instance = new WallListener();
	return instance;
}